import Vue from 'vue'
import App from './App'
import store from './store'
//引入全局配置文件
import update from '@/common/update.js'
import http from '@/common/http.js'
import globalFunction from '@/common/globalFunction.js'
import config from "@/common/config.js";
import cache from "@/common/cache.js";
import secret from "@/common/secret.js";

Vue.config.productionTip = false
Vue.prototype.$config = config;
Vue.prototype.$store = store;
Vue.prototype.$cache = cache;
Vue.prototype.$secretUtils = secret;

Vue.use(http);
Vue.use(globalFunction);
Vue.use(update);

App.mpType = 'app'


import api from "@/api/index"
Vue.prototype.$api = api;

import musicControl from "@/components/musicControl/index.vue"
Vue.component('music-control', musicControl)

import boxTitle from "@/components/boxTitle/index.vue"
Vue.component('box-title', boxTitle)

import tabBar from "@/components/tabBar/index.vue"
Vue.component('tab-bar', tabBar)

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

import {audio} from '@/plugins/audio/index.js'
Vue.prototype.$audio =audio

const app = new Vue({
	...App,
	store
})
app.$mount()
